<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Ajax-Gateway</title>
    <meta http-equiv="Cache-Control" content="no-cache, no-store" />
    <meta http-equiv="Pragma" content="no-cache, no-store" />
    <meta http-equiv="expires" content="Mon, 06 Jan 1990 00:00:01 GMT" />
</head>

<body>
<!--
  Ajax Gateway
  Work only subdomains
    Example:
    HTML in sub1.domain.com
    XML  in sub2.domain.com
-->
<script language="JavaScript" type="text/javascript">
  documentReferrer=[];
  documentReferrer['subdomain']=document.referrer.replace(/.*?\/./,"").replace(/\/.*/,"");
  documentReferrer['domain']=documentReferrer['subdomain'].replace(/.*?\./,"");
  HTML_SCRIPT_AJAXGATEWAY=document.createElement("script");
  HTML_SCRIPT_AJAXGATEWAY.src="http://"+(documentReferrer['subdomain'])+"/ajaxgateway.js";
  HTML_SCRIPT_AJAXGATEWAY.type="text/javascript";
  HTML_SCRIPT_AJAXGATEWAY.language="JavaScript";
  document.getElementsByTagName("head")[0].appendChild(HTML_SCRIPT_AJAXGATEWAY);
</script>
</body>
</html>
